package com.zh.kmmsample.model

import kotlinx.serialization.Serializable

/**
 * 问答，每日一问
 */
@Serializable
data class WenDaModel(
    val data: Data? = null,
    val errorCode: Int = 0,
    val errorMsg: String? = null
) {
    @Serializable
    data class Data(
        var curPage: Int = 0,
        var datas: List<Datas>? = null,
        var offset: Int = 0,
        var over: Boolean = false,
        var pageCount: Int = 0,
        var size: Int = 0,
        var total: Int = 0
    ) {
        @Serializable
        data class Datas(
            var adminAdd: Boolean = false,
            var apkLink: String? = null,
            var audit: Int = 0,
            var author: String? = null,
            var canEdit: Boolean = false,
            var chapterId: Int = 0,
            var chapterName: String? = null,
            var collect: Boolean = false,
            var courseId: Int = 0,
            var desc: String? = null,
            var descMd: String? = null,
            var envelopePic: String? = null,
            var fresh: Boolean = false,
            var host: String? = null,
            var id: Int = 0,
            //var isAdminAdd: Boolean = false,
            var link: String? = null,
            var niceDate: String? = null,
            var niceShareDate: String? = null,
            var origin: String? = null,
            var prefix: String? = null,
            var projectLink: String? = null,
            var publishTime: String = "0",
            var realSuperChapterId: Int = 0,
            var selfVisible: Int = 0,
            var shareDate: String = "0",
            var shareUser: String? = null,
            var superChapterId: Int = 0,
            var superChapterName: String? = null,
            var tags: List<Tags>? = null,
            var title: String? = null,
            var type: Int = 0,
            var userId: Int = 0,
            var visible: Int = 0,
            var zan: Int = 0,
        ) {
            @Serializable
            data class Tags(
                val name: String? = null,
                val url: String? = null
            )
        }
    }
}